home *** CD-ROM | disk | FTP | other *** search
/ MacGames Sampler / PHT MacGames Bundle.iso / MacSource Folder / Samples from the CD / Editors / emacs / Emacs-1.14b1-sources / sources / misc-headers / sys⁄stat.h < prev    next >
Encoding:
Text File  |  1994-05-24  |  1.1 KB  |  49 lines  |  [TEXT/EMAC]

  1. /*
  2.  * This file is part of a Macintosh port of GNU Emacs.
  3.  * Copyright (C) 1993, 1994 Marc Parmet.  All rights reserved.
  4.  *
  5.  * GNU Emacs is distributed in the hope that it will be useful,
  6.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  7.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  8.  * GNU General Public License for more details.
  9.  */
  10.  
  11. #ifndef __SYS_STAT__
  12. #define __SYS_STAT__
  13.  
  14. #define    S_IFMT    0170000        /* type of file */
  15. #define S_IFDIR    0040000        /* directory */
  16. #define S_IFCHR    0020000        /* character special */
  17. #define S_IFBLK    0060000        /* block special */
  18. #define S_IFREG    0100000        /* regular */
  19. #define S_IFIFO    0010000        /* fifo */
  20. #define S_IFNAM 0050000        /* special named file */
  21. #define S_IFLNK    0030000        /* alias file */
  22.  
  23. #define S_IREAD     0400
  24. #define S_IWRITE    0200
  25. #define S_IEXEC        0100
  26.  
  27. #if defined(powerc)
  28. #pragma options align=mac68k
  29. #endif
  30.  
  31. struct stat {
  32.     int st_ino;
  33.     int st_uid;
  34.     int st_gid;
  35.     int st_nlink;
  36.     int st_atime;
  37.     int st_ctime;
  38.     unsigned short st_mode;
  39.     int st_mtime;
  40.     int st_size;
  41.     int st_rdev;
  42. };
  43.  
  44. #if defined(powerc)
  45. #pragma options align=reset
  46. #endif
  47.  
  48. #endif
  49.